package com.shure.common.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

@Data
public abstract class Query implements Serializable {

    private Integer current = 1;

    private Integer size = 12;

    public Page getPage() {
        return new Page(this.current, this.size, true);
    }

    public Page getPage(Integer current, Integer size) {
        return new Page(current, size, true);
    }

    public abstract <T> Class<T> getClazz();


}
